import { $t } from "@/plugins/i18n";
import { home } from "@/router/enums";
const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/",
  name: "Home",
  component: Layout,
  redirect: "/promotion/index",
  meta: {
    icon: "ep:home-filled",
    title: $t("menus.pureHome"),
    rank: home
  },
  children: [
    // {
    //   path: "/welcome",
    //   name: "Welcome",
    //   component: () => import("@/views/welcome/data-overview/index.vue"),
    //   meta: {
    //     title: "数据概览",
    //     showLink: false
    //     // showLink: VITE_HIDE_HOME === "true" ? false : true
    //   }
    // },
    // {
    //   path: "/data-overview",
    //   name: "DataOverview",
    //   component: () => import("@/views/welcome/data-overview/index.vue"),
    //   meta: {
    //     title: "数据概览"
    //   }
    // },
    {
      path: "/material",
      name: "Material",
      component: () => import("@/views/welcome/material/index.vue"),
      meta: {
        showLink: false,
        title: "素材明细"
      }
    }
  ]
} satisfies RouteConfigsTable;
